import request from '@/utils/request'

// 区域管理-列表
export const cargoStatusList = data =>
  request({
    url: `/base/cargo-status/index`,
    method: 'post',
    data,
  })

// 区域管理-详情
export const cargoStatusDetail = params =>
  request({
    url: `/base/cargo-status/detail`,
    method: 'get',
    params,
  })

// 区域管理-创建
export const createCargoStatus = data =>
  request({
    url: `/base/cargo-status/create`,
    method: 'post',
    data,
  })

// 区域管理-编辑
export const updateCargoStatus = data =>
  request({
    url: `/base/cargo-status/update`,
    method: 'post',
    data,
  })

// 区域管理-删除
export const deleteCargoStatus = data =>
  request({
    url: `/base/cargo-status/delete`,
    method: 'post',
    data,
  })

// 区域管理-启用禁用
export const statusCargoStatus = data =>
  request({
    url: `/base/cargo-status/status`,
    method: 'post',
    data,
  })

// 货态管理-获取物流商渠道
export const getLogisticsChannel = data =>
  request({
    url: `/channel/dm/get-logistics-channel`,
    method: 'post',
    data,
  })

// 货态管理-获取物流商API
export const getLogisticsApi = data =>
  request({
    url: `/channel/dm/get-logistics-api`,
    method: 'post',
    data,
  })
